﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPagePrint.master" AutoEventWireup="true" CodeFile="MRefundsPrint.aspx.cs" Inherits="MRefundsPrint" EnableEventValidation="false" %>

<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">

    <style type="text/css">
        .text_bold {
            font-weight: bold;
        }

        .text_right {
            text-align: right;
        }

        .w25 {
            width: 25%;
        }
    </style>
</asp:Content>

<asp:Content ID="ClassifiersContnet" ContentPlaceHolderID="MainContent" runat="Server">
    <br />
    <div style="width: 100%; border-style: double none double none; text-align: center;">
        <h3>Loan Account Schedule</h3>
    </div>
    <br />
    <div class="table">
        <div class="row">
            <div class="cell text_right w25">Office:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="officeLabelID"></asp:Label></div>
            <div class="cell text_right w25">Loan Amount:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="loanAmmountLabelID"></asp:Label></div>
        </div>
        <div class="row">
            <div class="cell text_right w25">Loan Officer:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="loanOfficerLabelID"></asp:Label></div>
            <div class="cell text_right w25">Disbursal Date:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="disbursalDateLabelID"></asp:Label></div>
        </div>
        <div class="row">
            <div class="cell text_right w25">Client Name:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="clientNameLabelID"></asp:Label></div>
            <div class="cell text_right w25">Number Of Installments:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="numberOfInstallmentsLabelID"></asp:Label></div>
        </div>
        <div class="row">
            <div class="cell text_right w25">File ID:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="fileIDLabelID"></asp:Label></div>
            <div class="cell text_right w25">Interest Rate:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="interestRateLabelID"></asp:Label></div>
        </div>
        <div class="row">
            <div class="cell text_right w25">Loan Account Number:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="loanLabelID"></asp:Label></div>
            <div class="cell text_right w25">Currency:</div>
            <div class="cell w25">
                <asp:Label runat="server" ID="currencyLabel"></asp:Label></div>
        </div>
    </div>
    <br />
    <asp:GridView ID="refundGridView" runat="server" AutoGenerateColumns="false" ShowFooter="false" Width="100%">
        <AlternatingRowStyle CssClass="alt" />
        <Columns>
            <asp:BoundField DataField="iterationID" HeaderText=" Installment " ItemStyle-HorizontalAlign="Right" />
            
            <asp:BoundField DataField="principalDueID" HeaderText=" Principal Due " DataFormatString="{0:0.00}" ItemStyle-HorizontalAlign="Right" />
            <asp:BoundField DataField="interestID" HeaderText=" Interest Due " DataFormatString="{0:0.00}" ItemStyle-HorizontalAlign="Right" />
            <asp:BoundField DataField="feesID" HeaderText=" Fees Due " DataFormatString="{0:0.00}" ItemStyle-HorizontalAlign="Right" />
            <asp:BoundField DataField="penaltiesID" HeaderText=" Penalties Due " DataFormatString="{0:0.00}" ItemStyle-HorizontalAlign="Right" />
            
            <asp:BoundField DataField="dueID" HeaderText=" Total Due " DataFormatString="{0:0.00}" ItemStyle-HorizontalAlign="Right" />
            
            <asp:BoundField DataField="dateID" HeaderText=" Date " DataFormatString="{0:d MMMM yyyy}" HtmlEncode="false" />
            <asp:CheckBoxField DataField="isFinID" HeaderText="Status" />
        </Columns>
    </asp:GridView>

    <br />
    <div style="width:100%; font-weight:bolder; text-align:center; border: 1px solid black;">Activity Details</div>
    <asp:GridView ID="tranzactionGridView" runat="server" AutoGenerateColumns="false" ShowFooter="true" Width="100%">
        <AlternatingRowStyle CssClass="alt" />
        <Columns>

            <asp:TemplateField HeaderText=" Date " ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
                <ItemTemplate>
                    <asp:Label ID="TranzactionDateLabelID" runat="server" Text='<%# Bind("TranzactionDate","{0:dd MMMM yyyy}") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:Label ID="fTranzactionDate" runat="server" Text='<%# string.Format("{0:dd MMMM yyyy}", fTranzactionDate) %>'></asp:Label>
                </FooterTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" Comment " ItemStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <asp:Label ID="TranzactionAmountLabelID" runat="server" Text='<%# Bind("Type") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:Label ID="fTranzactionDate" runat="server" Text="Disbursment"></asp:Label>
                </FooterTemplate>
            </asp:TemplateField>
            
            <asp:BoundField DataField="Principal" HeaderText=" Principal " DataFormatString="{0:0.00}" HtmlEncode="false" ItemStyle-HorizontalAlign="Right" />
            <asp:BoundField DataField="Interest" HeaderText=" Interest " DataFormatString="{0:0.00}" HtmlEncode="false" ItemStyle-HorizontalAlign="Right" />
            <asp:BoundField DataField="Fees" HeaderText=" Fees " DataFormatString="{0:0.00}" HtmlEncode="false" ItemStyle-HorizontalAlign="Right" />
            <asp:BoundField DataField="Penalties" HeaderText=" Penalties " DataFormatString="{0:0.00}" HtmlEncode="false" ItemStyle-HorizontalAlign="Right" />
            <asp:TemplateField HeaderText=" Total Paid " ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
                <ItemTemplate>
                    <asp:Label ID="TranzactionAmount" runat="server" Text='<%# Bind("Amount","{0:0.00}") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:Label ID="fTranzactionDate" runat="server" Text='<%# string.Format("{0:0.00}", fTranzactionAmount) %>'></asp:Label>
                </FooterTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Total Outstanding " />
        </Columns>
    </asp:GridView>

</asp:Content>



